//
//  PhotoTableViewController.h
//  Paparazzi
//
//  Created by Eric Williams on 10/24/10.
//  Copyright 2010 Eric Williams. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "Person.h"
#import "Photo.h"
#import "FlickrFetcher.h"
#import "ImagePreviewDownloader.h"
#import "PersonTableViewController.h"

@interface PhotoTableViewController : UITableViewController <UIScrollViewDelegate, ImagePreviewDownloaderDelegate> { //, ContactDeleteDelegate> {
	FlickrFetcher *flickrFetcher;
	NSFetchedResultsController *frController;
	UIImageView *photosHeaderImageView;
	NSMutableDictionary *imagePreviewDownloadsInProgress;
	NSMutableDictionary *imagesPreviews;
	
	Person *person;
	BOOL multiUser;
}

@property (nonatomic, retain) Person *person;
//@property (retain) NSFetchedResultsController *frController;

- (BOOL)multiUser;
- (void)setMultiUser: (BOOL) input;
//- (void)contactDeleted;

- (void)startIconDownload:(Photo *) photo forIndexPath:(NSIndexPath *)indexPath;
- (void)loadImagesForOnscreenRows;
- (void)previewDownloadedWithData:(NSData *)data forIndex:(NSIndexPath *)index;

@property (nonatomic, retain) FlickrFetcher *flickrFetcher;
@property (nonatomic, retain) NSFetchedResultsController *frController;
@property (nonatomic, retain) UIImageView *photosHeaderImageView;
@property (nonatomic, retain) NSMutableDictionary *imagePreviewDownloadsInProgress;
@property (nonatomic, retain) NSMutableDictionary *imagePreviews;
@property (getter=multiUser,setter=setMultiUser:) BOOL multiUser;
@end
